from PySide6.QtUiTools import QUiLoader

from studentWindow.computer import Com
from studentWindow.order import Sorder
from studentWindow.self import Sself


class SMainW():
    def __init__(self):
        self.ui = QUiLoader().load('view/学生主界面.ui')
        self.ui.computer.triggered.connect(self.Computer)
        self.ui.self.triggered.connect(self.Self)
        self.ui.order.triggered.connect(self.Order)

    def Computer(self):
        self.window = Com()
        self.window.ui.show()

    def Self(self):
        self.window = Sself()
        self.window.ui.show()

    def Order(self):
        self.window = Sorder()
        self.window.ui.show()